<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>添加期刊</title>
	<link rel="stylesheet" href="css/bootstrap.min.css" />
	<script type="text/javascript" src="js/jquery.js"></script>
	<script type="text/javascript" src="js/bootstrap.min.js"></script>
	<style type="text/css">
		#xuexiao{
			color:#555;
		}
		#xuexiao:hover{
			color:#3a87ad;
		}
	</style>
</head>
<body >
		<%@include file="include/topbar.jsp" %>
		
		<div class="container" style="margin-top: 60px">
			<div class="row">
			<jsp:include page="include/left.jsp" >
				<jsp:param value="addqikan" name="tag"/>
			</jsp:include>
				
			
			<div class="span9" style="min-height:500px">
				<ul class="breadcrumb" style="border-radius:3px 3px 0 0;margin-bottom:0px;">
        				<li ><h4><i class="icon-tags"></i>添加期刊</h4></li>
     			</ul>
     			<div class="wall" style="padding:20px 30px;min-height:350px;padding-left:200px">
     			<form action="addqikan.jspx" method="post" >
     				<div class="control-group">
			            <label  class="control-label">期刊编号</label>
			            <div class="controls">
			              <input type="text" name="bianhao" id="bianhao" class="input-xlarge"/>
			              <span class="help-inline" id="help-bianhao"></span>
			            </div>
          			</div>
          			
          			<div class="control-group">
			            <label  class="control-label">期刊名称</label>
			            <div class="controls">
			              <input type="text" name="name" id="name" class="input-xlarge"/>
			              
			            </div>
          			</div>
          			
          			
          			
          			
          			<a href="qikan.jspx" class="btn btn-inverse" >期刊列表</a>
	   				 <a href="javascript:;" class="btn btn-primary"  id="tijiao">确认添加</a>
     				</form>
     			</div>
			</div>	
			
			
			</div>
			</div>
			<%@include file="include/footer.jsp" %>
			
											

			<script type="text/javascript">
				 $(document).ready(function(){
				 
				 	$("#tijiao").click(function(){
				 			var bianhao = $("#bianhao").val();
							var name = $("#name").val();
							if(bianhao.trim() == "" || name.trim() == ""){
								alert("不能为空！");
							}else{
								$("form").submit();
							}
				 	});
				 	
				 	
					
				}); 
			</script>
	
</body>
</html>